package com.whfc.fmam.entity.enums;

/**
 * @Description: 磅单图片类型
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/7/23 8:43
 */
public enum WeighNoteImgType {

    ENTER(1, "进场图片"),

    OUTER(2, "出厂图片"),

    DELIVER(3, "运单图片"),

    CHECK(4, "移动验收"),

    SIGNATURE(5, "签名图片");

    private Integer value;

    private String desc;

    WeighNoteImgType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static WeighNoteImgType parseValue(Integer value) {
        switch (value) {
            case 1:
                return ENTER;
            case 2:
                return OUTER;
            case 3:
                return DELIVER;
            case 4:
                return CHECK;
            case 5:
                return SIGNATURE;
            default:
                return null;
        }
    }
}
